<?php

class StaticContentController extends Zend_Controller_Action
{
	public function init()
	{
		// initial
	}
	
	public function displayAction() 
	{
		$page = $this->getRequest()->getParam('page');
		
		if(file_exists($tmp = $this->view->getScriptPath(null) . "/" . $this->getRequest()->getControllerName()
				 . "/$page.". $this->viewSuffix))
		{
			$this->render($page);
		} else 
		{
			throw new Zend_Controller_Action_Exception("page not found", 404);
		}
	}
}